unit untRelatorio;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DBXpress, FMTBcd, Buttons, Provider, DBClient, DB, SqlExpr;

type
  TfrmRelatorio = class(TForm)
    SQLConnection1: TSQLConnection;
    sdsProduto: TSQLDataSet;
    cdsProduto: TClientDataSet;
    dspProduto: TDataSetProvider;
    SpeedButton1: TSpeedButton;
    procedure SpeedButton1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmRelatorio: TfrmRelatorio;

implementation

uses untDM, untRelatorioPro;

{$R *.dfm}

procedure TfrmRelatorio.SpeedButton1Click(Sender: TObject);
begin
 cdsProduto.Open;
 frmRelatorioPro.RLReport1.Preview();
 cdsProduto.Close;

end;

end.
